package dsa;

import java.util.Scanner;

import com.WelCome;

public class ZhuCe {
	static boolean pd = false;
	static String user_name = null;
	static String  password = null;
	static int kahao = 0;
	static int max = 9999;
	static int min = 1000;
	public static void zc(){
		System.out.println("[会员系统>>注册]");
		System.out.println("请输入你的用户名:");
		Scanner sdf = new Scanner(System.in);
		ZhuCe.user_name = sdf.next();
		
		System.out.println("请输入你的密码：");
		Scanner asa = new Scanner(System.in);
		ZhuCe.password = asa.next();
		
	    kahao = (int)(Math.random()*(max - min)) + min;
	    
	    System.out.println("注册成功，请记住你的会员卡号");
	    System.out.println("*******************************");
	    System.out.println("用户名\t\t密码\t\t会员卡号");
	    System.out.println(user_name + "\t\t" + password + "\t\t" + kahao);
	    System.out.println("*******************************");
	    pd = true;
	    
	    String asc = Sj.sf();
	    if ("n".equals(asc)) {
			System.out.println("*********************");
			System.out.println("系统退出，谢谢使用!");
		} else if ("y".equals(asc)) {
			DengLu.denglu();
		}
	}
}
